package cn.getech.data.metadata.entity;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(description = "用户组信息")
@TableName("collection_notification_user")
public class CollectionNotificationUser implements Serializable {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户组名称")
    @TableField("user_group_name")
    private String userGroupName;

    @ApiModelProperty("描述")
    @TableField("describes")
    private String describes;

    @ApiModelProperty(value ="通知类型  1为部门 2为平台外用户")
    @TableField("notification_type")
    private Integer notificationType;

    @ApiModelProperty(value = "通知方式",example = "邮箱")
    @TableField("notification_mode")
    private String notificationMode;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "create_user")
    private Long createUser;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time")
    private Date updateTime;

    @ApiModelProperty("更新人id")
    @TableField(value = "update_user")
    private Long updateUser;

    @ApiModelProperty("免打扰开始时间")
    @TableField(strategy = FieldStrategy.IGNORED)
    private Date noDisturbingStart;

    @ApiModelProperty("免打扰结束时间")
    @TableField(strategy = FieldStrategy.IGNORED)
    private Date noDisturbingEnd;

    @ApiModelProperty("租户id")
    @TableField(value = "tenant_id")
    private Integer tenantId;

    @ApiModelProperty("接收人集合")
    @TableField(exist = false)
    List<CollectionNotificationReceived> collectionNotificationReceiveds;

}
